/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.system.service.api;


import com.koron.common.domain.DataBean;
import com.koron.system.domain.Announcement;
import org.swan.bean.MessageBean;

import java.util.Date;
import java.util.List;

public interface AnnouncementService {

    /**
     * 保存通知公告
     * @param announcement
     * @return
     */
    MessageBean<Integer> save(Announcement announcement);

    /**
     * 逻辑删除通知公告
     * @param idList
     * @return
     */
    MessageBean<Integer> batchDeteleLogic(List<String> idList);

    /**
     * 物理删除通知公告
     * @param idList
     * @return
     */
    MessageBean<Integer> batchDetele(List<String> idList);

    MessageBean<Announcement> queryOne(String id);

    /**
     * 根据指定条件查询通知公告列表
     * @param title
     * @param beginTime
     * @param endTime
     * @param start
     * @param rows
     * @return
     */
    MessageBean<DataBean<Announcement>> list(String title, Date beginTime,Date endTime,Integer start,Integer rows);
}
